//
//  WH_BaseModel.m
//  App_6.23
//
//  Created by wanghao on 16/6/30.
//  Copyright © 2016年 wanghao. All rights reserved.
//

#import "WH_BaseModel.h"

@implementation WH_BaseModel

-(instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    self = [super init];
    
    if (self) {
        
        [self setValuesForKeysWithDictionary:dictionary];
    }
    
    return self;
}

+(instancetype)modelWithDictionary:(NSDictionary *)dictionary
{
    
    return [[self alloc] initWithDictionary:dictionary];
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

@end
